
# -*- coding: UTF-8 -*-
'''
@Project ：apiautotest 
@File ：mock.py
@Author ：假斯文
@Params :   
@Date ：2021/7/9 9:24 
'''


import flask,json

server = flask.Flask(__name__)

@server.route('/jiasiwen',methods = ['get','post'])
def get_J():
    j = [
        {"id":"1","name":"zhangsan"},
        {"id":"2","name":"lisi"},
        {"id": "3", "name": "wangwu"}
    ]
    response = json.dumps(j,ensure_ascii=False)
    return response

server.run(port=9002,debug=True)